Skip to content

Comments

Small fixes: npm migration, root check, config asset extraction, non-interactive mode, system packages fix#7

Merged
trisdoan merged 7 commits intomainfrom
small_fixes
Feb 25, 2026
Merged

Small fixes: npm migration, root check, config asset extraction, non-interactive mode, system packages fix#7
trisdoan merged 7 commits intomainfrom
small_fixes

Conversation

@nilshamerlinck
Copy link
Contributor

@nilshamerlinck nilshamerlinck commented Feb 24, 2026

Summary

  • Replace all `pnpm` references with `npm` (code, tests, docs)
  • Add root user check to `bootstrap.sh` — exits early with a clear error if run as root
  • Remove `uv` installer from example `tools.script` config in README and docs (uv is installed via `bootstrap.sh`)
  • Extract inline config example from `show_config_instructions()` into `trobz_local/assets/odoo_dev.toml`, loaded at runtime via `importlib.resources`
  • Add `-y`/`--yes` flag to skip all confirmations (non-interactive/CI mode)
  • Fix `install-tools` not installing default OS system packages (`UBUNTU_PACKAGES` etc.) when `system_packages` was empty or absent in config; add `--no-install-default-system-packages` flag to opt out

Test plan

  • All 57 existing tests pass (`make test`)
  • Running `bootstrap.sh` as root prints an error and exits
  • `tlc install-tools` on a machine without config still shows the example from the asset file
  • `tlc install-tools -y` runs without any confirmation prompts
  • `tlc install-tools` installs default system packages (e.g. `libldap2-dev`) even when `system_packages` is empty in config
  • `tlc install-tools --no-install-default-system-packages` skips default OS packages

🤖 Generated with Claude Code

nilshamerlinck and others added 7 commits February 24, 2026 12:32
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
uv is installed via bootstrap.sh, not via tools.script

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
uv is installed via bootstrap.sh, not via tools.script

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Default OS packages (UBUNTU_PACKAGES etc.) were silently skipped when
system_packages was empty or absent in config. Two root causes fixed:
- _run_installers: removed the falsy-list guard around install_system_packages
- install_system_packages: removed early return that bypassed default packages

Also adds --install-default-system-packages/--no-install-default-system-packages
flag (default: true) to opt out of default package installation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nilshamerlinck nilshamerlinck changed the title Small fixes: npm migration, root check, config asset extraction Small fixes: npm migration, root check, config asset extraction, non-interactive mode, system packages fix Feb 25, 2026
@trisdoan trisdoan merged commit d109bbc into main Feb 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants